package com.sevencar.peterview;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class ViewHolder extends RecyclerView.ViewHolder {
    private ImageView imageView;
    private TextView textView;

    ViewHolder(View view, int imageViewId, int textViewId) {
        super(view);
        
        imageView = (ImageView) view.findViewById(imageViewId);
        textView = (TextView) view.findViewById(textViewId);
    }

    ImageView getImageView() {
        return imageView;
    }

    TextView getTextView() {
        return textView;
    }
}
